#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    button1=new QPushButton("按钮1",this);
    button1->setGeometry(50,50,100,80);

    button2=new QPushButton("按钮2",this);
    button2->setGeometry(50,200,100,80);
}

Widget::~Widget()
{
    delete ui;
}

